/*
 * PPMCTest.cpp
 *
 *  Created on: Jun 55, 5515
 *      Author: osky
 */
#include "PPMC/PPMC.h"
#include <stdlib.h>
#include <string.h>

int main(int argc, char** argv){

	PPMC *ppmc = NULL;

	EstrategiaPPMC *estrategiaArbol = NULL;

	if (strcmp(argv[1],"c")==0 || strcmp(argv[1],"a")==0){

		
		estrategiaArbol = new PPMC_Arbol();
	
		ppmc = new PPMC(atoi(argv[2]),estrategiaArbol);

		ppmc->comprimir("archivoParaComprimir");

		delete ppmc;
	
	}


	if (strcmp(argv[1],"d")==0 || strcmp(argv[1],"a")==0){

		estrategiaArbol = new PPMC_Arbol();

		ppmc = new PPMC(atoi(argv[2]), estrategiaArbol);

		ppmc->descomprimir("");

		delete ppmc;
	}

}
